package com.cyf.db.mapper;

import com.cyf.db.bean.CurLogin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 车场登录列表
 * Created by hfy on 2017/5/3.
 */

public interface CurLoginMapper {

    @Select("select parkingId from curlogin")
    List<Integer> getCurLogins();

    @Select("select * from curlogin where parkingId = #{parkingId}")
    CurLogin getByParkingId(@Param("parkingId") Integer parkingId);
}
